<?php
class service_type{
	const PRODUCT = 1;
	const NEWS = 2;
	const PAGE = 3;
	const CATEGORY = 4;
	const BANNER = 5;
	const OTHER = 6;
	const SLIDE = 7;
	const ADSIDEBAR = 8;
	const ADMIDDLE = 9;
	const DESIGNER = 10;
	const OWNER = 11;
	const PHOTO = 12;
	const VIDEO = 13;
	const INTERVIEW = 14;
	const DESIGNLIFE = 15; 
	const UNEWS = 16;
	const USER = 17;
	const NEWPRO = 18;
	const COMPANY = 19;
	const ALBUM = 20;
	public function getName($type){
		$names = array(
			'1' => '作品',
			'2' => '文章',
			'3' => '单页',
			'4' => '分类',
			'5' => 'banner',
			'6' => '其他',
			'7' => '幻灯片',
			'8' => '边栏广告',
			'9' => '通栏广告',
			'10' => '设计师',
			'11' => '业主',
			'12' => '头像',
			'13' => '视频',
			'14' => '个人专访',
			'15' => '设计人生',
			'16' => '最新动态',
			'17' => '用户',
			'18' => '新品',
			'19' => '公司',
			'20' => '相册'
			);
		return $names[$type];
	}
}
?>
